<?php

header("Content-Type:text/html;charset=utf8"); 

$data["page"][] = "commandPayTradeCreatePay";
$data["page"][] = "fastPayTradeMergePay";
$data["page"][] = "openPaymentAccount";
$data["page"][] = "redirectAirBindCard";
$data["page"][] = "wallet";


$data["resp"][] = "commandPayConfirm";
$data["resp"][] = "commandPayTradeCreate";
$data["resp"][] = "fastPayMergeCreateTrade";
$data["resp"][] = "fastPayTradeRefund";
$data["resp"][] = "multipleTradeMergeQuery";
$data["resp"][] = "ppmNewRuleRegisterUser";

//$noNotify = ["ppmNewRuleRegisterUser", "wallet", "multipleTradeMergeQuery", "commandPayConfirm" ];

function wLine($line){
    echo "$line<br/>\n";
}
?>

<html>
<body>
<?php
foreach($data as $key=>$arr){
    wLine("=======================");
    if($key=='page') {
        wLine("页面跳转：");
    }else{
        wLine("数据接口：");
    }
    wLine("=======================");
    foreach($arr as $item){
        wLine($item);
        if($key=='page'){
            $sherf = '<a href="_main.php?t=redirect&k='.$key.'&n='.$item.'" target="_main">跳转</a>';
        }else{
            $sherf = '<a href="_main.php?t=resp&k='.$key.'&n='.$item.'" target="_main">响应</a>';
        }
        if(isset($noNotify) && !in_array($item, $noNotify)){
            $sherf .= '&nbsp;&nbsp;&nbsp;<a href="_main.php?t=notify&k='.$key.'&n='.$item.'" target="_main">通知</a>';
        }
        wLine($sherf);
    }
    echo "<br/><br/>";
}
?>
</body>
</html>
